<template>
  <div class="content">
    {{ msg }}
    <input type="button" @click="msgChange" value="点击" />

    <hr />
    <nav>
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link>
    </nav>
    <router-view></router-view>
  </div>
</template>
<script>
export default {
  data() {
    return {
      msg: 'hello',
    }
  },
  methods: {
    msgChange() {
      this.msg = 'world'
    },
  },
}
</script>
<style scoped lang="scss">
$myColor: blue;
.content {
  color: $myColor;
}
</style>
